﻿using System;
using GCommon;

namespace COW
{
    public class AchievementData : CSVBaseData
    {
        public int ID;
        public string Description;
        public int Param;

        public override string GetPrimaryKey()
        {
            return ID.ToString();
        }

        public override void ParseData(long index, int fieldCount, string[] headers, string[] values)
        {
            ID = ReadInt("id", headers, values, 0);
            Description = ReadString("description", headers, values, string.Empty);
            Param = ReadInt("param", headers, values, 0);
        }
    }
}